Hệ thống bổ nhiệm bác sĩ trong PHP bằng mã nguồn

1 <?php if(!isset($_SESSION)){
2     session_start();
3     }
4 ?>
5
6 <?php include(
'header.php'); ?>
7
8
9
10
11
12
13     <!--
this is for donor registraton -->
14     <div
class="dashboard" style="background-color:#fff;">
15         <h3
class="text-center" style="background-color:#272327;color: #fff;padding: 5px;">Patient List</h3>
16         
17         
18     </div>
19         
20             <div
class="all_user" style="margin-top:0px; margin-left: 40px;">
21                 <?php
22                     include(
'../config.php');
23
24                     $sql =
" SELECT * FROM patient";
25                     $result = mysqli_query($conn,$sql);
26                     $count = mysqli_num_rows($result);
27
28                     
if($count>=1){
29                         echo
"<table border='1' align='center' cellpadding='32'>
30                             <tr>
31                                 <th>patient ID</th>
32                                 <th>Patient Name</th>
33                                 
34                                 <th>Age</th>
35                                 <th>Mobile</th>
36                                 <th>Address</th>
37                                 <th>B-Group</th>
38
39                                 <th>Email </th>
40                                 <th>Action</th>
41                                 
42                             </tr>"
;
43                         
while($row=mysqli_fetch_array($result)){
44                                 echo
"<tr>";
45                                 echo
"<td>".$row['id']."</td>";
46                                 echo
"<td>".$row['name']."</td>";
47                                 
48                                 echo
"<td>".$row['age']."</td>";
49                                 echo
"<td>".$row['contact']."</td>";
50                                 echo
"<td>".$row['address']."</td>";
51                                 echo
"<td>".$row['bgroup']."</td>";
52                                 
53                                 echo
"<td>".$row['email']."</td>";
54                                 echo
"<td><button type='submit' name='submit' style='color:#000;'>Update</button><button type='submit' name='submit' style='color:#000;'>Delete</button></td>";
55                                 echo
"</tr>";
56                         }
57                         echo
"</table>";
58                     }
59                     
else{
60                         print
"<p align='center'>Sorry, No match found for your search result..!!!</p>";
61                     }
62
63                     ?>
64             </div>
65         
66     
67     
68     
69
70     
71  <?php include(
'footer.php'); ?>
72
73
74     
75     </div><!-- containerFluid Ends -->
76
77
78
79
80     <script src=
"js/bootstrap.min.js"></script>
81
82
83  
84             
85
86
87
88     
89 </body>
90 </html>


Gõ tìm kiếm nhanh...